package exercise2;

import banking.Bank;
import banking.Customer;

/**
 *
 * @author dmle
 */
public class TestBanking {
  public static void main(String[] args) {
    Bank b = new Bank();
    String[] fnames = {"John", "Simms", "Bryant", "Soley", "Soley"};
    String[] lnames = {"Smith", "Jane", "Owen", "Tim", "Maria"};

    for (int i = 0; i < fnames.length; i++) {
      b.addCustomer(fnames[i], lnames[i]);
    }

    for (int i = 1; i < b.getNumberOfCustomers(); i++) {
      Customer c = b.getCustomer(i);
      System.out.println("Customer ["+i+"] is " + c.getFirstName() + ", " + c.getLastName());
    }
  }
}
